home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Utilities / MenuCalendarClock-iCal-2.1.1.dmg / MenuCalendarClock iCal.app / Contents / Resources / LicensePrefs.nib / _LicensePrefs_EOArchive.java next >
Encoding:
Java Source  |  2005-11-07  |  19.0 KB  |  359 lines

  1. // _LicensePrefs_EOArchive.java
  2. // Generated by EnterpriseObjects palette at Mittwoch, 18. August 2004 15:23 Uhr Europe/Berlin
  3.  
  4. import com.webobjects.eoapplication.*;
  5. import com.webobjects.eocontrol.*;
  6. import com.webobjects.eointerface.*;
  7. import com.webobjects.eointerface.swing.*;
  8. import com.webobjects.foundation.*;
  9. import java.awt.*;
  10. import javax.swing.*;
  11. import javax.swing.border.*;
  12. import javax.swing.table.*;
  13. import javax.swing.text.*;
  14.  
  15. public class _LicensePrefs_EOArchive extends com.webobjects.eoapplication.EOArchive {
  16.     IBHelpConnector _iBHelpConnector0;
  17.     OPCharFilterFormatter _oPCharFilterFormatter0;
  18.     OPKeycodeFormatter _oPKeycodeFormatter0;
  19.     com.webobjects.eointerface.swing.EOFrame _eoFrame0;
  20.     com.webobjects.eointerface.swing.EOTextField _nsTextField0, _nsTextField1, _nsTextField2, _nsTextField3, _nsTextField4, _nsTextField5, _nsTextField6;
  21.     javax.swing.JButton _nsButton0, _nsButton1, _nsButton2;
  22.     javax.swing.JComboBox _popup0;
  23.     javax.swing.JPanel _nsView0;
  24.  
  25.     public _LicensePrefs_EOArchive(Object owner, NSDisposableRegistry registry) {
  26.         super(owner, registry);
  27.     }
  28.  
  29.     protected void _construct() {
  30.         Object owner = _owner();
  31.         EOArchive._ObjectInstantiationDelegate delegate = (owner instanceof EOArchive._ObjectInstantiationDelegate) ? (EOArchive._ObjectInstantiationDelegate)owner : null;
  32.         Object replacement;
  33.  
  34.         super._construct();
  35.  
  36.         _nsTextField6 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField111111");
  37.         _iBHelpConnector0 = (IBHelpConnector)_registered(new IBHelpConnector(), "");
  38.         _nsButton2 = (javax.swing.JButton)_registered(new javax.swing.JButton(""), "NSButton31");
  39.         _popup0 = (javax.swing.JComboBox)_registered(new javax.swing.JComboBox(), "NSPopUpButton");
  40.  
  41.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "licenseField")) != null)) {
  42.             _nsTextField5 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  43.             _replacedObjects.setObjectForKey(replacement, "_nsTextField5");
  44.         } else {
  45.             _nsTextField5 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField24");
  46.         }
  47.  
  48.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent.nextFocusableComponent")) != null)) {
  49.             _nsButton1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement;
  50.             _replacedObjects.setObjectForKey(replacement, "_nsButton1");
  51.         } else {
  52.             _nsButton1 = (javax.swing.JButton)_registered(new javax.swing.JButton("Check Code"), "NSButton111");
  53.         }
  54.  
  55.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.formatter")) != null)) {
  56.             _oPCharFilterFormatter0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (OPCharFilterFormatter)replacement;
  57.             _replacedObjects.setObjectForKey(replacement, "_oPCharFilterFormatter0");
  58.         } else {
  59.             _oPCharFilterFormatter0 = (OPCharFilterFormatter)_registered(new OPCharFilterFormatter(), "OPCharFilterFormatter");
  60.         }
  61.  
  62.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.formatter")) != null)) {
  63.             _oPKeycodeFormatter0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (OPKeycodeFormatter)replacement;
  64.             _replacedObjects.setObjectForKey(replacement, "_oPKeycodeFormatter0");
  65.         } else {
  66.             _oPKeycodeFormatter0 = (OPKeycodeFormatter)_registered(new OPKeycodeFormatter(), "OPKeycodeFormatter");
  67.         }
  68.  
  69.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent")) != null)) {
  70.             _nsTextField4 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  71.             _replacedObjects.setObjectForKey(replacement, "_nsTextField4");
  72.         } else {
  73.             _nsTextField4 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField1");
  74.         }
  75.  
  76.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "checkButton.nextFocusableComponent")) != null)) {
  77.             _nsTextField3 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  78.             _replacedObjects.setObjectForKey(replacement, "_nsTextField3");
  79.         } else {
  80.             _nsTextField3 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField");
  81.         }
  82.  
  83.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "nameFieldCaption")) != null)) {
  84.             _nsTextField2 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  85.             _replacedObjects.setObjectForKey(replacement, "_nsTextField2");
  86.         } else {
  87.             _nsTextField2 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField2");
  88.         }
  89.  
  90.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "codeFieldCaption")) != null)) {
  91.             _nsTextField1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  92.             _replacedObjects.setObjectForKey(replacement, "_nsTextField1");
  93.         } else {
  94.             _nsTextField1 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField21");
  95.         }
  96.  
  97.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "licenseFieldCaption")) != null)) {
  98.             _nsTextField0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  99.             _replacedObjects.setObjectForKey(replacement, "_nsTextField0");
  100.         } else {
  101.             _nsTextField0 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField23");
  102.         }
  103.  
  104.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent")) != null)) {
  105.             _nsButton0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement;
  106.             _replacedObjects.setObjectForKey(replacement, "_nsButton0");
  107.         } else {
  108.             _nsButton0 = (javax.swing.JButton)_registered(new javax.swing.JButton("Get Code\u2026"), "NSButton");
  109.         }
  110.  
  111.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_window")) != null)) {
  112.             _eoFrame0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOFrame)replacement;
  113.             _replacedObjects.setObjectForKey(replacement, "_eoFrame0");
  114.         } else {
  115.             _eoFrame0 = (com.webobjects.eointerface.swing.EOFrame)_registered(new com.webobjects.eointerface.swing.EOFrame(), "LicensePane");
  116.         }
  117.  
  118.         _nsView0 = (JPanel)_eoFrame0.getContentPane();
  119.     }
  120.  
  121.     protected void _awaken() {
  122.         super._awaken();
  123.         _popup0.setModel(new javax.swing.DefaultComboBoxModel());
  124.         _popup0.addItem("");
  125.         _popup0.addItem("Cut");
  126.         _popup0.addItem("Copy");
  127.         _popup0.addItem("Paste");
  128.         _popup0.addItem("Delete");
  129.         _popup0.addItem("Select All");
  130.  
  131.         if (_replacedObjects.objectForKey("_nsTextField5") == null) {
  132.             _connect(_owner(), _nsTextField5, "licenseField");
  133.         }
  134.  
  135.         if (_replacedObjects.objectForKey("_nsButton1") == null) {
  136.             _connect(_owner(), _nsButton1, "checkButton");
  137.         }
  138.  
  139.         _nsButton1.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "checkLicense", _nsButton1), ""));
  140.  
  141.         if (_replacedObjects.objectForKey("_nsTextField3") == null) {
  142.             _connect(_owner(), _nsTextField3, "_firstKeyView");
  143.         }
  144.  
  145.         if (_replacedObjects.objectForKey("_nsTextField3") == null) {
  146.             _connect(_owner(), _nsTextField3, "_initialKeyView");
  147.         }
  148.  
  149.         _nsTextField3.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "checkLicense", _nsTextField3), ""));
  150.  
  151.         if (_replacedObjects.objectForKey("_nsTextField4") == null) {
  152.             _connect(_owner(), _nsTextField4, "codeField");
  153.         }
  154.  
  155.         _nsTextField4.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "checkLicense", _nsTextField4), ""));
  156.  
  157.         if (_replacedObjects.objectForKey("_nsTextField3") == null) {
  158.             _connect(_owner(), _nsTextField3, "nameField");
  159.         }
  160.  
  161.         if (_replacedObjects.objectForKey("_nsTextField2") == null) {
  162.             _connect(_owner(), _nsTextField2, "nameFieldCaption");
  163.         }
  164.  
  165.         if (_replacedObjects.objectForKey("_nsTextField1") == null) {
  166.             _connect(_owner(), _nsTextField1, "codeFieldCaption");
  167.         }
  168.  
  169.         if (_replacedObjects.objectForKey("_nsTextField0") == null) {
  170.             _connect(_owner(), _nsTextField0, "licenseFieldCaption");
  171.         }
  172.  
  173.         if (_replacedObjects.objectForKey("_nsButton0") == null) {
  174.             _connect(_owner(), _nsButton0, "_lastKeyView");
  175.         }
  176.  
  177.         if (_replacedObjects.objectForKey("_nsButton0") == null) {
  178.             _connect(_owner(), _nsButton0, "buyButton");
  179.         }
  180.  
  181.         if (_replacedObjects.objectForKey("_eoFrame0") == null) {
  182.             _connect(_owner(), _eoFrame0, "_window");
  183.         }
  184.  
  185.         _nsButton0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "buyAction", _nsButton0), ""));
  186.     }
  187.  
  188.     protected void _init() {
  189.         super._init();
  190.         .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "copy", ), ""));
  191.         .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "delete", ), ""));
  192.         .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "selectAll", ), ""));
  193.         .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "cut", ), ""));
  194.         .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "paste", ), ""));
  195.         _setFontForComponent(_nsTextField6, "Lucida Grande", 10, Font.PLAIN);
  196.         _nsTextField6.setEditable(false);
  197.         _nsTextField6.setOpaque(false);
  198.         _nsTextField6.setText("Enter your registration name and code you got via email. If you do not have a code yet, you can get one online from the Objectpark web store.");
  199.         _nsTextField6.setHorizontalAlignment(javax.swing.JTextField.LEFT);
  200.         _nsTextField6.setSelectable(false);
  201.         _nsTextField6.setEnabled(true);
  202.         _nsTextField6.setBorder(null);
  203.         _setFontForComponent(_nsButton2, "Lucida Grande", 11, Font.PLAIN + Font.BOLD);
  204.         _nsButton2.setMargin(new Insets(0, 2, 0, 2));
  205.         _setFontForComponent(_popup0, "Lucida Grande", 13, Font.PLAIN);
  206.  
  207.         if (_replacedObjects.objectForKey("_nsTextField5") == null) {
  208.             _setFontForComponent(_nsTextField5, "Lucida Grande", 13, Font.PLAIN);
  209.             _nsTextField5.setEditable(false);
  210.             _nsTextField5.setOpaque(false);
  211.             _nsTextField5.setText("Standard (unregistered)");
  212.             _nsTextField5.setHorizontalAlignment(javax.swing.JTextField.CENTER);
  213.             _nsTextField5.setSelectable(false);
  214.             _nsTextField5.setEnabled(true);
  215.             _nsTextField5.setBorder(null);
  216.         }
  217.  
  218.         if (_replacedObjects.objectForKey("_nsButton0") == null) {
  219.             _connect(_nsButton0, _nsButton1, "nextFocusableComponent");
  220.         }
  221.  
  222.         if (_replacedObjects.objectForKey("_nsButton1") == null) {
  223.             _setFontForComponent(_nsButton1, "Lucida Grande", 13, Font.PLAIN);
  224.             _nsButton1.setMargin(new Insets(0, 2, 0, 2));
  225.         }
  226.  
  227.         if (_replacedObjects.objectForKey("_nsButton1") == null) {
  228.             _connect(_nsButton1, _nsTextField3, "nextFocusableComponent");
  229.         }
  230.  
  231.         if (_replacedObjects.objectForKey("_nsTextField3") == null) {
  232.             _connect(_nsTextField3, _oPCharFilterFormatter0, "formatter");
  233.         }
  234.  
  235.         if (_replacedObjects.objectForKey("_nsTextField4") == null) {
  236.             _connect(_nsTextField4, _nsButton0, "nextFocusableComponent");
  237.         }
  238.  
  239.         if (_replacedObjects.objectForKey("_nsTextField4") == null) {
  240.             _connect(_nsTextField4, _oPKeycodeFormatter0, "formatter");
  241.         }
  242.  
  243.         if (_replacedObjects.objectForKey("_nsTextField4") == null) {
  244.             _setFontForComponent(_nsTextField4, "Courier", 13, Font.PLAIN);
  245.             _nsTextField4.setEditable(true);
  246.             _nsTextField4.setOpaque(true);
  247.             _nsTextField4.setText("");
  248.             _nsTextField4.setHorizontalAlignment(javax.swing.JTextField.CENTER);
  249.             _nsTextField4.setSelectable(true);
  250.             _nsTextField4.setEnabled(true);
  251.         }
  252.  
  253.         if (_replacedObjects.objectForKey("_nsTextField3") == null) {
  254.             _connect(_nsTextField3, _nsTextField4, "nextFocusableComponent");
  255.         }
  256.  
  257.         if (_replacedObjects.objectForKey("_nsTextField3") == null) {
  258.             _setFontForComponent(_nsTextField3, "Courier", 12, Font.PLAIN);
  259.             _nsTextField3.setEditable(true);
  260.             _nsTextField3.setOpaque(true);
  261.             _nsTextField3.setText("");
  262.             _nsTextField3.setHorizontalAlignment(javax.swing.JTextField.CENTER);
  263.             _nsTextField3.setSelectable(true);
  264.             _nsTextField3.setEnabled(true);
  265.         }
  266.  
  267.         if (_replacedObjects.objectForKey("_nsTextField2") == null) {
  268.             _setFontForComponent(_nsTextField2, "Lucida Grande", 13, Font.PLAIN);
  269.             _nsTextField2.setEditable(false);
  270.             _nsTextField2.setOpaque(false);
  271.             _nsTextField2.setText("Name:");
  272.             _nsTextField2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
  273.             _nsTextField2.setSelectable(false);
  274.             _nsTextField2.setEnabled(true);
  275.             _nsTextField2.setBorder(null);
  276.         }
  277.  
  278.         if (_replacedObjects.objectForKey("_nsTextField1") == null) {
  279.             _setFontForComponent(_nsTextField1, "Lucida Grande", 13, Font.PLAIN);
  280.             _nsTextField1.setEditable(false);
  281.             _nsTextField1.setOpaque(false);
  282.             _nsTextField1.setText("Code:");
  283.             _nsTextField1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
  284.             _nsTextField1.setSelectable(false);
  285.             _nsTextField1.setEnabled(true);
  286.             _nsTextField1.setBorder(null);
  287.         }
  288.  
  289.         if (_replacedObjects.objectForKey("_nsTextField0") == null) {
  290.             _setFontForComponent(_nsTextField0, "Lucida Grande", 13, Font.PLAIN);
  291.             _nsTextField0.setEditable(false);
  292.             _nsTextField0.setOpaque(false);
  293.             _nsTextField0.setText("Version:");
  294.             _nsTextField0.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
  295.             _nsTextField0.setSelectable(false);
  296.             _nsTextField0.setEnabled(true);
  297.             _nsTextField0.setBorder(null);
  298.         }
  299.  
  300.         if (_replacedObjects.objectForKey("_nsButton0") == null) {
  301.             _setFontForComponent(_nsButton0, "Lucida Grande", 13, Font.PLAIN);
  302.             _nsButton0.setMargin(new Insets(0, 2, 0, 2));
  303.         }
  304.  
  305.         if (!(_nsView0.getLayout() instanceof EOViewLayout)) { _nsView0.setLayout(new EOViewLayout()); }
  306.         _nsButton0.setSize(144, 26);
  307.         _nsButton0.setLocation(94, 146);
  308.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton0, EOViewLayout.MinYMargin);
  309.         _nsView0.add(_nsButton0);
  310.         _nsTextField3.setSize(296, 22);
  311.         _nsTextField3.setLocation(96, 40);
  312.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField3, EOViewLayout.MinYMargin);
  313.         _nsView0.add(_nsTextField3);
  314.         _nsTextField0.setSize(80, 17);
  315.         _nsTextField0.setLocation(12, 11);
  316.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField0, EOViewLayout.MinYMargin);
  317.         _nsView0.add(_nsTextField0);
  318.         _nsTextField4.setSize(296, 24);
  319.         _nsTextField4.setLocation(96, 70);
  320.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField4, EOViewLayout.MinYMargin);
  321.         _nsView0.add(_nsTextField4);
  322.         _nsTextField5.setSize(283, 17);
  323.         _nsTextField5.setLocation(93, 11);
  324.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField5, EOViewLayout.MinYMargin);
  325.         _nsView0.add(_nsTextField5);
  326.         _nsTextField1.setSize(79, 17);
  327.         _nsTextField1.setLocation(12, 72);
  328.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField1, EOViewLayout.MinYMargin);
  329.         _nsView0.add(_nsTextField1);
  330.         _nsTextField2.setSize(79, 17);
  331.         _nsTextField2.setLocation(12, 42);
  332.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField2, EOViewLayout.MinYMargin);
  333.         _nsView0.add(_nsTextField2);
  334.         _popup0.setSize(41, 26);
  335.         _popup0.setLocation(41, 146);
  336.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_popup0, EOViewLayout.MinYMargin);
  337.         _nsView0.add(_popup0);
  338.         _nsButton2.setSize(25, 25);
  339.         _nsButton2.setLocation(402, 148);
  340.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton2, EOViewLayout.MinYMargin);
  341.         _nsView0.add(_nsButton2);
  342.         _nsButton1.setSize(150, 26);
  343.         _nsButton1.setLocation(245, 146);
  344.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton1, EOViewLayout.MinYMargin);
  345.         _nsView0.add(_nsButton1);
  346.         _nsTextField6.setSize(302, 39);
  347.         _nsTextField6.setLocation(93, 102);
  348.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField6, EOViewLayout.MinYMargin);
  349.         _nsView0.add(_nsTextField6);
  350.  
  351.         if (_replacedObjects.objectForKey("_eoFrame0") == null) {
  352.             _nsView0.setSize(436, 183);
  353.             _eoFrame0.setTitle("License");
  354.             _eoFrame0.setLocation(14, 553);
  355.             _eoFrame0.setSize(436, 183);
  356.         }
  357.     }
  358. }
  359.